// 批量导入
const files = require.context('./modules', false, /.js$/);
const modules = files.keys().reduce((r, k) => (r[require('path').basename(k, '.js')] = files(k).default || files(k)) && r, {});

export default modules;
